/** 
 * Project Name:sfsp_util 
 * File Name:ContidonModel.java 
 * Package Name:com.hyht.util.model 
 * Date:2017年6月23日上午10:05:10 
 * Copyright (c) 2017 hangyunhuitong.com 
 * 
 */
package com.wanlian.model;

import java.util.HashMap;
import java.util.Map;

/**
 * ClassName: ContidonModel <br/>
 * date: 2017年6月23日 上午10:05:10 <br/>
 * 
 * @author lenovo
 * @version 0.0.1-SNAPSHOT
 */

public class ConditionModel
{
    private Map<String, String> conditonMap;

    private int currentIndex;

    private int totalPage;

    private int totalCount;

    private int pageSize;

    public void addCondition(String key,String value){
        if(this.conditonMap==null){
            this.conditonMap=new HashMap<String,String>();
        }
        if(this.conditonMap.containsKey(key)==false){
            this.conditonMap.put(key, value);
        }
    }

    public int getCurrentIndex()
    {
        return currentIndex;
    }

    public void setCurrentIndex(int currentIndex)
    {
        this.currentIndex = currentIndex;
    }

    public int getTotalPage()
    {
        return totalPage;
    }

    public void setTotalPage(int totalPage)
    {
        this.totalPage = totalPage;
    }

    public int getTotalCount()
    {
        return totalCount;
    }

    public void setTotalCount(int totalCount)
    {
        this.totalCount = totalCount;
    }

    public int getPageSize()
    {
        return pageSize;
    }

    public void setPageSize(int pageSize)
    {
        this.pageSize = pageSize;
    }

}
